<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<%@ include file="/WEB-INF/common/head.jspf"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>

	<div id="Title_bar">
		<div id="Title_bar_Head">
			<div id="Title_Head"></div>
			<div id="Title">
				<!--页面标题-->
				<img border="0" width="13" height="13"
					src="<%=basePath%>/style/images/title_arrow.gif" /> 用户管理
			</div>
			<div id="Title_End"></div>
		</div>
	</div>

	<div id="MainArea">
		<table cellspacing="0" cellpadding="0" class="TableStyle">

			<!-- 表头-->
			<thead>
				<tr align=center valign=middle id=TableTitle>
					<td width="100">登录名</td>
					<td width="100">姓名</td>
					<td width="100">性别</td>
					<td width="100">所属部门</td>
					<td width="200">岗位</td>
					<td>备注</td>
					<td>相关操作</td>
				</tr>
			</thead>

			<!--显示数据列表-->
			<tbody id="TableData" class="dataContainer">
				<s:iterator value="#userList">
					<tr class="TableDetail1 template">
						<td>${loginName}&nbsp;</td>
						<td>${name}&nbsp;</td>
						<td>${gender}&nbsp;</td>
						<td>${department.name}&nbsp;</td>
						<td><s:iterator value="roles">
	                		${name }&nbsp;&nbsp;
	                	</s:iterator></td>
						<td>${desci}&nbsp;</td>
						<td><s:a action="user_delete?id=%{id}"
								onclick="return confirm('确定要删除吗？')">删除</s:a>, <s:a
								action="user_toUpdate?id=%{id}">修改</s:a>, <s:a
								action="user_resetPassword?id=%{id}"
								onclick="return confirm('确定把密码重置为1234么？')">重置密码</s:a></td>
					</tr>
				</s:iterator>
			</tbody>
		</table>

		<!-- 其他功能超链接 -->
		<div id="TableTail">
			<div id="TableTail_inside">
				<s:a action="user_toAdd">
					<img src="<%=basePath%>/style/images/createNew.png" />
				</s:a>
			</div>
		</div>
	</div>

</body>
</html>